package com.caval.service;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface UserService {
    //用户名或邮箱登录
    Map<String,Object> login(String username, String password, HttpSession session);

    //注册
    String regist(String username,String password,String tel,String email);

    Map<String,Object> getUserById(HttpSession session);

    //用户是否存在
    boolean userExist(String username,String email);
}
